package org.tio.sitexxx.service.service.kf;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;
import com.jfinal.plugin.activerecord.SqlPara;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.tio.sitexxx.service.model.main.ConsultantServiceStaff;
import org.tio.sitexxx.service.vo.Const;

public class InformationService {
    private static Logger log = LoggerFactory.getLogger(InformationService.class);
    public static final InformationService me=new InformationService();
    final static ConsultantServiceStaff dao = new ConsultantServiceStaff().dao();

    public Record findInfo(String openid){
        System.out.println("test3");
       // Db.findFirst("select * from consultant_service_staff");
        SqlPara sqlPara = Db.use(Const.Db.TIO_SITE_MAIN).getSqlPara("information.all");
        Record record = Db.findFirst(sqlPara);
        System.out.println("test");
        return record;
    }
}
